package com.kingyea.mobilepolice.redis.service;

import com.kingyea.mobilepolice.systemsync.Send2Queue;
import org.springframework.data.redis.connection.RedisConnection;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description
 * @date Created in 2018/4/18 11:45
 */
@Service("redisService")
public class RedisService extends RedisSyncService {

    @Send2Queue
    @Override
    public String test(String val) {
        return super.test(val);
    }

    @Override
    public byte[] get(RedisConnection conn, byte[] key) {
        return super.get(conn, key);
    }

    @Send2Queue
    @Override
    public void set(RedisConnection conn, byte[] key, byte[] value) {
        super.set(conn, key, value);
    }

    @Send2Queue
    @Override
    public Boolean expire(RedisConnection conn, byte[] key, long seconds) {
        return super.expire(conn, key, seconds);
    }

    @Send2Queue
    @Override
    public Long rPush(RedisConnection conn, byte[] key, byte[]... values) {
        return super.rPush(conn, key, values);
    }

    @Send2Queue
    @Override
    public Long del(RedisConnection conn, byte[]... keys) {
        return super.del(conn, keys);
    }

    @Send2Queue
    @Override
    public Long lRem(RedisConnection conn, byte[] key, long count, byte[] value) {
        return super.lRem(conn, key, count, value);
    }

    @Send2Queue
    @Override
    public List<byte[]> lRange(RedisConnection conn, byte[] key, long start, long end) {
        return super.lRange(conn, key, start, end);
    }
}
